<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/utils.js"></script> 
<script src="/wondershare/js/topic.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function selectId( obj, id ){
	var ret = $(obj).attr('checked') ? parent.selectRelatedProduct( id, 1 ) : parent.selectRelatedProduct( id, 0 );
	
	if( !ret ){
		$(obj).attr('checked', '');	
	}
}

$(function(){
	$("#tr_<{$hide_ar_id}> :input").attr('disabled','disabled');	
})
</script>
</head>
<body >

<form id="myform" name="myform" method="POST" action="/wondershare/products.php?action=index">
    <img height="22" border="0" width="26" alt="SEARCH" src="images/icon_search.gif">
        <!-- 分类 -->
        主分类：<select name="cat_id" style="width:150px;"><option value="0">所有分类</option>
	<{if $cat_select_s == "" }>
	<{$cat_select}>
	<{else}>
	<{$cat_select_s}>
	<{/if}>
	</select>
	 <!-- 产品标签 -->
    &nbsp;&nbsp;产品标签：<select name="tag" style="width:80px;"><option value="">所有</option>
	<option value="New" <{if $tag == "New" }> selected="selected" <{/if}> >New</option>
	<option value="Free" <{if $tag == "Free" }> selected="selected" <{/if}> >Free</option>
	<option value="Upgrade" <{if $tag == "Upgrade" }> selected="selected" <{/if}> >Upgrade</option>
	<option value="Top Seller" <{if $tag == "Top Seller" }> selected="selected" <{/if}> >Top Seller</option>
	<option value="Top Downloader" <{if $tag == "Top Downloader" }> selected="selected" <{/if}> >Top Downloader</option>
	</select>
	<!-- 重要性 -->
    &nbsp;&nbsp;重要级别：<select name="is_emphasis"><option value="0">所有</option>
	<option value="1"  <{if $is_emphasis == 1 }> selected="selected" <{/if}> >重要</option>
	<option value="2" <{if $is_emphasis == 2 }> selected="selected" <{/if}> >次要</option>
	</select>
    &nbsp;&nbsp;
    <{$web_info}> 产品ID OR  公共产品ID<input type="text" size="6" name="pr_id" value="<{$pr_id}>"/>
        <!-- 关键字 -->
    &nbsp;&nbsp;
    产品名称：<input type="text" size="25" name="pr_name" value="<{if $pr_name == '' }>输入产品名称<{else}><{$pr_name|escape}><{/if}>" onblur="if(this.value=='')this.value='输入产品名称';" onclick="if(this.value=='输入产品名称')this.value=''"  style="margin-right:10px;">
	<input type="hidden"  name="type" value="<{$type}>" >
	<input type="hidden" name="product_list" value="<{$product_list}>" />
	<input type="hidden" name="products_id" value="<{$products_edit_id}>" />
    <input type="hidden" name="sortby" id="sortby" value="<{$sortby}>" />
    <input type="hidden" name="sort" id="sort" value="<{$sort}>"/>
    <input type="hidden" name="web_type" id="web_type" value="<{$web_type}>"/>
    <input type="hidden" name="forselect" id="forselect" value="1"/>
    <input type="hidden" name="selected" value="<{$selected}>"/>
    <input type="hidden" name="hide_ar_id" value="<{$hide_ar_id}>"/>
    <input type="hidden" name="limit" value="10" />
    <input type="submit" class="button"  name="search" value=" 搜索 ">

</form>



<table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div">
<tbody>
  <tr>
    <th align="center">产品ID</th>
    <th>产品名称</th>
    <th>修改人</th>
  </tr>
   <{foreach from=$products_info item=products}>
  <tr align="center" id="tr_<{$products.id}>">
    <td align="center">
    <input value="<{$products.id}>" name="ID[]" type="checkbox" onclick="selectId(this, <{$products.id}>)" <{if $products.id|in_array:$selected_arr}>checked="checked"<{/if}> /><{$products.id}> </td>
	
	<td align="left" id="td_title_<{$products.id}>">
	<span id="title_<{$products.id}>"><{$products.product_name|escape}></span>
	</td>
		
    <td align="center">
	<{if $products.won_product_update_user != ''}>  <{$products.won_product_update_user}> <{else}> <{$products.won_product_add_user}> <{/if}>
	</td>
	
  </tr>
  <{/foreach}>
  <tr> <td colspan="3">&nbsp;&nbsp;<{$page_url}> &nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</td>
	</tr>
  </tbody>
</table>

</body>
</html>